// components/homeNav.js
var app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    parameter: {
      type: Object,
      value: {
        class: '0'
      },
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    navH: ""
  },
  attached: function () {
    this.setData({
      navH: app.globalData.navHeight
    });
  },

  /**
   * 组件的方法列表
   */
  methods: {
    back: function () {
      wx.navigateBack();
    },
    search: function(){
      wx.navigateTo({
        url: "/pages/goods/search/index"
    })
    }
  }
})
